import { BrowserRouter, Redirect, Switch } from 'react-router-dom';
import routes from './router/config';
import RouteView from './router';

import 'antd/dist/antd.css';

function App() {
    return (
        <BrowserRouter>
            <Switch>
                <Redirect exact from="/" to="/login" />
                <RouteView routes={routes} />
            </Switch>
        </BrowserRouter>
    );
}

export default App;
